<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="nationDetail.title"/></title>
<content tag="heading"><fmt:message key="nationDetail.heading"/></content>

<html:form action="saveNation" method="post" styleId="nationForm" onsubmit="return validateNationForm(this)">
<ul>

<html:hidden property="id"/>

    <li>
        <generalsetting:label styleClass="desc" key="nationForm.nationId"/>
        <html:errors property="nationId"/>
        <html:text property="nationId" styleId="nationId" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="nationForm.nationName"/>
        <html:errors property="nationName"/>
        <html:text property="nationName" styleId="nationName" styleClass="text medium"/>

    </li>

    <li>
        <generalsetting:label styleClass="desc" key="nationForm.regionId"/>
        <!-- html:errors property="regionId"/-->
        <!-- html:text property="regionId" styleId="regionId" styleClass="text medium"/-->
            <html:select property="regionId">
            	<html:options collection="regions" property="regionId" labelProperty="regionName"/>
            </html:select>

    </li>

    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('Nation')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("nationForm"));
</script>

<html:javascript formName="nationForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
<script type="text/javascript" src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
